<template>
  <div>
    <el-carousel :interval="4000" type="card" height="300px">
    <el-carousel-item v-for="item in imgs" >
        <img :src="item.imgurl" style="width: 100%;height: 100%"/>
      </el-carousel-item>
    </el-carousel>
  </div>
</template>

<script>
export default {
  name: "FrontHome",
  data(){
    return{
      imgs:[]
    }
  },
  created(){
    // this.$axios.get("https://api.muxiaoguo.cn/api/bing",{
    //   params:{
    //         api_key:'d40ffd9aa0e42e3c',
    //         id:'today',
    //         pn:'5'
    //       },
    // }).then(res=>{
    //   console.log(res)
    //   this.imgs=res.data.data
    //   console.log(this.img)
    // })
  },
  methods:{

  }
}
</script>

<style scoped>
.el-carousel__item h3 {
  color: #475669;
  font-size: 14px;
  opacity: 0.75;
  line-height: 200px;
  margin: 0;
}

.el-carousel__item:nth-child(2n) {
  background-color: #99a9bf;
}

.el-carousel__item:nth-child(2n+1) {
  background-color: #d3dce6;
}
</style>